import BaseTemplate from "@/components/layout/BaseTemplate.vue";

export default [
  {
    path: "/system",
    name: "systemTemplate",
    component: BaseTemplate,
    children: [
      {
        path: "organization",
        name: "organization",
        component: () =>
          import(
            /* webpackChunkName: "organization" */ "@/views/system/Company.vue"
          ),
        meta: {
          title: "组织信息设置",
        },
      },
      {
        path: "department",
        name: "department",
        component: () =>
          import(
            /* webpackChunkName: "department" */ "@/views/system/Department.vue"
          ),
        meta: {
          title: "部门维护",
        },
      },
      {
        path: "staff",
        name: "staff",
        component: () =>
          import(/* webpackChunkName: "staff" */ "@/views/system/Staff.vue"),
        meta: {
          title: "员工维护",
        },
      },
      {
        path: "user",
        name: "user",
        component: () =>
          import(/* webpackChunkName: "user" */ "@/views/system/User.vue"),
        meta: {
          title: "系统用户维护",
        },
      },
      {
        path: "role",
        name: "role",
        component: () =>
          import(/* webpackChunkName: "role" */ "@/views/system/Role.vue"),
        meta: {
          title: "角色维护及授权",
        },
      },
      {
        path: "flow-chart",
        name: "flowChart",
        component: () =>
          import(
            /* webpackChunkName: "flowChart" */ "@/views/system/FlowChartReceipt.vue"
          ),
        meta: {
          title: "流程管理",
        },
      },
    ],
  },
];
